You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
H5 createWorker now wraps the browser's dedicated Worker, replacing the previous unsupported placeholder. No actionable merge-blocking risk was found, and the new tests cover the main behaviors.
Pre-merge checks: 4
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
❌ Patch coverage is 94.73684% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 59.64%. Comparing base (b598745) to head (1d9f15d).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #19675
这个 PR 做了什么?
封装浏览器 dedicated Worker,支持已部署的 classic Worker 脚本 URL、消息收发和终止。遵循公开接口的单 Worker 约定。浏览器没有小程序 onProcessKilled 事件。
验证
3 个 Jest 用例覆盖消息结构、终止后重建和同步报错。此前已在 Chrome 157 验证浏览器原生 Worker 消息往返。
这个 PR 是什么类型?
这个 PR 涉及以下平台:
Chrome 157 联调
Chrome 157 中用实际 Taro API 加载同源 classic Worker、发送和接收消息、终止后重建。
Summary by CodeRabbit